<?php
namespace app\common\service;

class Access
{
    public static function roleData($data,$id){
        $roleData = [];
        foreach ($data as $value) {
            $roleData[] = ['role_id'=>$value,'admin_id'=>$id];
        }
        return $roleData;
    }
    
    public static function agencyData($data,$id){
        $agencyData = [];
        foreach ($data as $value) {
            $agencyData[] = ['agency_id'=>$value,'admin_id'=>$id];
        }
        return $agencyData;
    }
}